import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty } from 'class-validator';
export class CreateInformDto {
  @ApiProperty({ description: '消息', required: true })
  @IsNotEmpty({
    message: '消息内容不能为空',
  })
  content: string;

  @ApiProperty({ description: '用户id', required: true })
  @IsNotEmpty({
    message: '用户id不能为空',
  })
  userId: number;
}
